const {parseString} = require('xml2js')
exports.jsdata = function (xml) {
    return new Promise((res,rej)=>{
        parseString(xml,{trim:true},(err,data)=>{
            res(data)
        })
    })
}